// router/index.js
import { createBrowserRouter } from 'react-router-dom'
import Layout from '@/pages/Layout'
import Mouth from '@/pages/Mouth'
import Year from '@/pages/Year'
import New from '@/pages/New'
import NotFound from '@/pages/NotFound'

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        index: true,
        element: <Mouth />
      },
      {
        path: '/year',
        element: <Year />
      }
    ]
  },
  {
    path: '/new',
    element: <New />
  },
  {
    path: '*',
    element: <NotFound />
  }
])

export default router
